package com.lvmama.rhino.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lvmama.rhino.mapper.StationMapper;
import com.lvmama.rhino.pojo.search.FlowSearchStation;
import com.lvmama.rhino.service.StationService;

/** 
* @ClassName: StationService 
* @Description: 批量插入站点信息
* @author Administrator
* @date 2017年4月27日 下午5:07:16  
*/
@Service
public class StationServiceImpl implements StationService{
    
    @Autowired
    private StationMapper stationMapper;

	@Override
	public Boolean insertStationList(List<FlowSearchStation> stationList) {
		//先清空表
		stationMapper.deleteStation();
		stationMapper.insertStationList(stationList);
		return true;
	}

}
